package com.dragon.modules.yuegou.model.wallet;

import com.dragon.modules.yuegou.entity.wallet.MemberCardCancelEntity;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 后台退卡（取消福利卡发放）模型类
 * 
 * @author pbuilder generated
 * @date 2019-08-22 19:47:33
 * @company sgy
 * @version 2.0
 * @see Length 长度限制
 * @see NotNull 对象非空
 * @see NotEmpty 字符串、集合、表、数组非空
 */
public class MemberCardCancel extends MemberCardCancelEntity {

	private String cardType;//卡类型

	private String recordType;//购买

	private String employeeName;//姓名

	private String mobile;//手机

	private String title;//卡名称

	private String cardNo;//卡号

	private String companyName;//公司名称

	private BigDecimal amount;//悦卡面值
	
	private BigDecimal balance;//悦卡余额

	public String getEmployeeName() {
		return employeeName;
	}

	public void setEmployeeName(String employeeName) {
		this.employeeName = employeeName;
	}
	

	public BigDecimal getBalance() {
		return balance;
	}

	public void setBalance(BigDecimal balance) {
		this.balance = balance;
	}

	public String getCardType() {
		return cardType;
	}

	public void setCardType(String cardType) {
		this.cardType = cardType;
	}

	public String getRecordType() {
		return recordType;
	}

	public void setRecordType(String recordType) {
		this.recordType = recordType;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getCardNo() {
		return cardNo;
	}

	public void setCardNo(String cardNo) {
		this.cardNo = cardNo;
	}

	public String getCompanyName() {
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	public BigDecimal getAmount() {
		return amount;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	/**
	 * 构造一个空后台退卡（取消福利卡发放）模型对象
	 */
	public MemberCardCancel(){
		super();
	}
	
	/**
	 * 依据实体对象的信息构造一个后台退卡（取消福利卡发放）模型对象
	 * 
	 * @param entity 实体对象
	 */
	public MemberCardCancel(MemberCardCancelEntity entity){
		super(entity);
	}

	/**
	 * 依据其它对象的信息构造一个后台退卡（取消福利卡发放）模型对象
	 * 
	 * @param other 其它对象
	 */
	public MemberCardCancel(MemberCardCancel other){
		super(other);
	}


	@Override
	public String getId() {
    	return id;
    }

    /**
	 * 设置
	 * 
	 * @param id 
	 * @return 当前对象
	 */
    public MemberCardCancel id(String id) {
    	this.id = id;
    	return this;
    }

	@Override
	public String getMemberId() {
    	return memberId;
    }

    /**
	 * 设置会员ID（冗余ID）
	 * 
	 * @param memberId 会员ID（冗余ID）
	 * @return 当前对象
	 */
    public MemberCardCancel memberId(String memberId) {
    	this.memberId = memberId;
    	return this;
    }

	@Override
	public String getMemberWalletId() {
    	return memberWalletId;
    }

    /**
	 * 设置会员钱包ID（冗余ID）
	 * 
	 * @param memberWalletId 会员钱包ID（冗余ID）
	 * @return 当前对象
	 */
    public MemberCardCancel memberWalletId(String memberWalletId) {
    	this.memberWalletId = memberWalletId;
    	return this;
    }

	@Override
	public String getCardTemplateId() {
    	return cardTemplateId;
    }

    /**
	 * 设置悦卡模板ID
	 * 
	 * @param cardTemplateId 悦卡模板ID
	 * @return 当前对象
	 */
    public MemberCardCancel cardTemplateId(String cardTemplateId) {
    	this.cardTemplateId = cardTemplateId;
    	return this;
    }

	@Override
	public String getMemberCardId() {
    	return memberCardId;
    }

    /**
	 * 设置会员悦卡ID
	 * 
	 * @param memberCardId 会员悦卡ID
	 * @return 当前对象
	 */
    public MemberCardCancel memberCardId(String memberCardId) {
    	this.memberCardId = memberCardId;
    	return this;
    }

	@Override
	public String getCreatedBy() {
    	return createdBy;
    }

    /**
	 * 设置退卡人
	 * 
	 * @param createdBy 退卡人
	 * @return 当前对象
	 */
    public MemberCardCancel createdBy(String createdBy) {
    	this.createdBy = createdBy;
    	return this;
    }

	@Override
	public LocalDateTime getCreatedTime() {
    	return createdTime;
    }

    /**
	 * 设置退卡时间
	 * 
	 * @param createdTime 退卡时间
	 * @return 当前对象
	 */
    public MemberCardCancel createdTime(LocalDateTime createdTime) {
    	this.createdTime = createdTime;
    	return this;
    }

	@Override
	public String getReason() {
    	return reason;
    }

    /**
	 * 设置退卡原因
	 * 
	 * @param reason 退卡原因
	 * @return 当前对象
	 */
    public MemberCardCancel reason(String reason) {
    	this.reason = reason;
    	return this;
    }

	@Override
	public BigDecimal getRemain() {
    	return remain;
    }

    /**
	 * 设置退款金额
	 * 
	 * @param remain 退款金额
	 * @return 当前对象
	 */
    public MemberCardCancel remain(BigDecimal remain) {
    	this.remain = remain;
    	return this;
    }
}
